package com.dark.sys.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.dark.common.entity.BaseEntity;

@Entity @Table(name="sys_resource")
public class Resource extends BaseEntity<Integer> {

	private static final long serialVersionUID = 1L;
	
	private String name ;
	
	/** 权限标识，sys:resource */
	private String identity ;
	
	private String href ;
	
	private String state = "open" ;
	
	private Integer weight ;
	
	private String icon ;
	
	private Boolean iniframe = Boolean.TRUE ;
	
	/** 资源类型，true：操作资源，false：普通资源 */
	private Boolean type = Boolean.FALSE ;
	
	private Integer pid ;

	private Integer menuId ;
	
	/** 父节点路径 */
	private String parentIds ;
	
	private String parentIdentity ;
	
	
	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	public String getParentIdentity() {
		return parentIdentity;
	}

	public void setParentIdentity(String parentIdentity) {
		this.parentIdentity = parentIdentity;
	}

	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}

	public Boolean getType() {
		return type;
	}

	public void setType(Boolean type) {
		this.type = type;
	}

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

	public Integer getMenuId() {
		return menuId;
	}

	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Boolean getIniframe() {
		return iniframe;
	}

	public void setIniframe(Boolean iniframe) {
		this.iniframe = iniframe;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
}
